import request from '@/config/axios'

// 查询设置列表
export const getResLevelConfList = (params) => {
  return request.get({ url: '/resLevelConf/list', params })
}

// 获取设置详情
export const getResLevelConf = (id: number) => {
  return request.get({ url: '/resLevelConf/getById?id=' + id })
}

// 新增设置
export const saveResLevelConf = (data) => {
  return request.post({ url: '/resLevelConf/saveOrUpdate', data })
}

// 获取区域
export const getAllRegion = () => {
  return request.get({ url: '/resLevelConf/getAllRegion' })
}

// 删除设置
export const deleteResLevelConf = (data) => {
  return request.post({ url: '/resLevelConf/delete', data})
}
